﻿namespace ExamV5.WAPPage
{
    using ExamV5;
    using System;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class FrmLookStudy : Page
    {
        protected GridView DataGridA;
        protected GridView DataGridB;
        protected GridView DataGridC;
        protected GridView DataGridD;
        protected GridView DataGridE;
        protected GridView DataGridF;
        protected GridView DataGridG;
        protected GridView DataGridH;
        protected GridView DataGridI;
        protected GridView DataGridJ;
        private double double_0 = 0.0;
        private double double_1 = 0.0;
        private double double_2 = 0.0;
        private double double_3 = 0.0;
        private double double_4 = 0.0;
        private double double_5 = 0.0;
        private double double_6 = 0.0;
        private double double_7 = 0.0;
        private double double_8 = 0.0;
        private double double_9 = 0.0;
        protected HtmlForm form1;
        protected HtmlHead Head1;
        private HttpCookie httpCookie_0 = null;
        private HttpCookie httpCookie_1 = null;
        private HttpCookie httpCookie_2 = null;
        private HttpCookie httpCookie_3 = null;
        protected ImageButton ImgButExit;
        private int int_0 = 0;
        protected Label labAFen;
        protected Label labATitle;
        protected Label labBFen;
        protected Label labBTitle;
        protected Label labCFen;
        protected Label labCountFen;
        protected Label labCTitle;
        protected Label labDFen;
        protected Label labDTitle;
        protected Label labEFen;
        protected Label labETitle;
        protected Label labExamName;
        protected Label labFFen;
        protected Label labFTitle;
        protected Label labGFen;
        protected Label labGTitle;
        protected Label labHFen;
        protected Label labHTitle;
        protected Label labIFen;
        protected Label labITitle;
        protected Label labJFen;
        protected Label labJTitle;
        protected Label labPaperFen;
        protected Label labSumTable;
        private PublicFun publicFun_0 = new PublicFun();
        private string string_0 = "";
        private string[] string_1;
        private string[] string_10;
        private string[] string_11;
        private string[] string_12;
        private string[] string_13;
        private string[] string_14;
        private string[] string_15;
        private string[] string_16;
        private string[] string_17;
        private string[] string_18;
        private string[] string_19;
        private string[] string_2;
        private string[] string_20;
        private string[] string_21;
        private string[] string_22;
        private string[] string_23;
        private string[] string_24;
        private string[] string_25;
        private string[] string_26;
        private string[] string_27;
        private string[] string_28;
        private string[] string_29;
        private string[] string_3;
        private string[] string_30;
        private string[] string_31;
        private string[] string_32;
        private string[] string_33;
        private string string_34 = "还未批改";
        private string string_35 = "还未批改";
        private string string_36 = "还未批改";
        private string string_37 = "人未批改";
        private string string_38 = "人未批改";
        private string string_39 = "人未批改";
        private string[] string_4;
        private string string_40 = "人未批改";
        private string string_41 = "人未批改";
        private string string_42 = "人未批改";
        private string string_43 = "人未批改";
        private string string_44 = "";
        private string string_45 = "";
        private string string_46 = "";
        private string string_47 = "";
        private string[] string_5;
        private string[] string_6;
        private string[] string_7;
        private string[] string_8;
        private string[] string_9;

        protected void ImgButExit_Click(object sender, ImageClickEventArgs e)
        {
            base.Response.Cookies["ExamUserCode"].Value = "";
            base.Response.Cookies["ExamUserName"].Value = "";
            base.Response.Cookies["ExamDeptName"].Value = "";
            base.Response.Cookies["ExamDeptID"].Value = "";
            base.Response.Cookies["ExamWorker"].Value = "";
            base.Response.Cookies["ExamUserSex"].Value = "";
            base.Response.Cookies["ExamUserLevel"].Value = "";
            base.Response.Cookies["ExamUserGWName"].Value = "";
            base.Response.Cookies["ExamUserGWLevel"].Value = "";
            string str = base.Request.Url.ToString();
            str = str.Substring(0, str.LastIndexOf('/') + 1);
            base.Response.Redirect(str + "FrmLogin.aspx");
        }

        private void method_0(string string_48, string string_49, string string_50, string string_51)
        {
            if (string_48 != "")
            {
                int index = 0;
                double num2 = 0.0;
                string[] strArray5 = this.string_45.Split(new char[] { ',' });
                string[] strArray = this.string_45.Split(new char[] { ',' });
                string[] strArray3 = this.string_45.Split(new char[] { ',' });
                string[] strArray6 = string_49.Split(new char[] { '|' });
                int num = 0;
                while (num < strArray.Length)
                {
                    strArray[num] = "0";
                    strArray3[num] = "0";
                    num++;
                }
                string connectionString = ConfigurationManager.ConnectionStrings["Conn"].ConnectionString;
                string cmdText = "Select SubjectID from RubricInfo where ID in(" + string_48.Replace("#", ",") + "0) order by " + string_50.Trim();
                string text1 = ConfigurationManager.ConnectionStrings["Conn"].ConnectionString;
                SqlConnection connection = new SqlConnection(connectionString);
                connection.Open();
                SqlCommand command = new SqlCommand(cmdText, connection);
                SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
                while (reader.Read())
                {
                    num = 0;
                    while (num < strArray5.Length)
                    {
                        if (reader["SubjectID"].ToString() == strArray5[num].Trim())
                        {
                            if (strArray6[index].Trim() != "")
                            {
                                num2 = Convert.ToDouble(strArray[num]) + Convert.ToDouble(strArray6[index].Trim());
                                strArray[num] = num2.ToString("0.00");
                            }
                            num2 = Convert.ToDouble(strArray3[num]) + Convert.ToDouble(string_51.Trim());
                            strArray3[num] = num2.ToString("0.00");
                        }
                        num++;
                    }
                    index++;
                }
                reader.Close();
                command.Dispose();
                connection.Close();
                connection.Dispose();
                string[] strArray2 = this.string_46.Split(new char[] { ',' });
                string[] strArray4 = this.string_47.Split(new char[] { ',' });
                this.string_46 = "";
                this.string_47 = "";
                for (num = 0; num < strArray.Length; num++)
                {
                    num2 = Convert.ToDouble(strArray[num]) + Convert.ToDouble(strArray2[num].Trim());
                    this.string_46 = this.string_46 + num2.ToString("0.00") + ",";
                    this.string_47 = this.string_47 + ((Convert.ToDouble(strArray3[num]) + Convert.ToDouble(strArray4[num].Trim()))).ToString("0.00") + ",";
                }
                if (this.string_46.Length > 0)
                {
                    this.string_46 = this.string_46.Substring(0, this.string_46.Length - 1);
                    this.string_47 = this.string_47.Substring(0, this.string_47.Length - 1);
                }
            }
        }

        private void method_1()
        {
            int num3;
            string[] strArray = this.string_45.Split(new char[] { ',' });
            string[] strArray2 = this.string_44.Split(new char[] { '、' });
            string[] strArray3 = this.string_45.Split(new char[] { ',' });
            string[] strArray4 = this.string_45.Split(new char[] { ',' });
            this.string_46 = "";
            this.string_47 = "";
            for (int i = 0; i < strArray.Length; i++)
            {
                strArray3[i] = "0";
                strArray4[i] = "0";
                this.string_46 = this.string_46 + "0,";
                this.string_47 = this.string_47 + "0,";
            }
            if (this.string_46.Length > 0)
            {
                this.string_46 = this.string_46.Substring(0, this.string_46.Length - 1);
                this.string_47 = this.string_47.Substring(0, this.string_47.Length - 1);
            }
            this.labSumTable.Text = "<table id='tableABC1' borderColor='#cccccc'   cellSpacing='0'  cellPadding='0' width='100%' align='center' border='1' class='tableStyle'>";
            this.labSumTable.Text = this.labSumTable.Text + "<tr height='25'>";
            for (num3 = 0; num3 < strArray2.Length; num3++)
            {
                this.labSumTable.Text = this.labSumTable.Text + "<td align='center' colspan=3><B>" + strArray2[num3].ToString() + "</B></td>";
            }
            this.labSumTable.Text = this.labSumTable.Text + "<td align='center' colspan=3><B>合 计</B></td>";
            this.labSumTable.Text = this.labSumTable.Text + "</tr>";
            this.labSumTable.Text = this.labSumTable.Text + "<tr height='25'>";
            for (num3 = 0; num3 < strArray2.Length; num3++)
            {
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>总分值</B></td>";
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>得分值</B></td>";
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>得分率</B></td>";
            }
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>总分值</B></td>";
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>得分值</B></td>";
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center'><B>得分率</B></td>";
            this.labSumTable.Text = this.labSumTable.Text + "</tr>";
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(string.Concat(new object[] { "select c.FenDist,a.RubricS,a.RubricD,a.RubricB,a.RubricF,a.RubricA,a.RubricC,a.RubricT,a.RubricAn,a.RubricO,a.RubricJ,a.SortInfo,b.RubricSFen,b.RubricDFen,b.RubricBFen,b.RubricFFen,b.RubricAFen,b.RubricCFen,b.RubricTFen,b.RubricAnFen,b.RubricOFen,b.RubricJFen,b.CheckUserFFen,b.CheckUserAFen,b.CheckUserCFen,b.CheckUserTFen,b.CheckUserAnFen,b.CheckUserOFen,b.CheckUserJFen from PaperData a,CheckPaper b,PaperInfo c where c.ID=a.PaperID and a.PaperID=b.PaperID and a.UserCode=b.UserCode and b.UserCode='", this.string_0, "' and a.PaperID=", this.int_0 }), connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (reader.Read())
            {
                int num4;
                string[] strArray9;
                string[] strArray10;
                double num5;
                string[] strArray7 = reader["SortInfo"].ToString().Split(new char[] { '#' });
                string[] strArray8 = reader["FenDist"].ToString().Split(new char[] { '#' });
                if (reader["RubricS"].ToString().Trim() != "")
                {
                    this.method_0(reader["RubricS"].ToString().Trim(), reader["RubricSFen"].ToString().Trim(), strArray7[0].Trim(), strArray8[0].Trim());
                }
                if (reader["RubricD"].ToString().Trim() != "")
                {
                    this.method_0(reader["RubricD"].ToString().Trim(), reader["RubricDFen"].ToString().Trim(), strArray7[1].Trim(), strArray8[1].Trim());
                }
                if (reader["RubricB"].ToString().Trim() != "")
                {
                    this.method_0(reader["RubricB"].ToString().Trim(), reader["RubricBFen"].ToString().Trim(), strArray7[2].Trim(), strArray8[2].Trim());
                }
                if (reader["RubricF"].ToString().Trim() != "")
                {
                    string str6 = "";
                    if (!(reader["CheckUserFFen"].ToString().Trim() != ""))
                    {
                        str6 = reader["RubricFFen"].ToString().Trim();
                    }
                    else
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricFFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserFFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                num5 = Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim());
                                str6 = str6 + num5.ToString("0.00") + "|";
                            }
                        }
                    }
                    this.method_0(reader["RubricF"].ToString().Trim(), str6, strArray7[3].Trim(), strArray8[3].Trim());
                }
                if (reader["RubricA"].ToString().Trim() != "")
                {
                    string str5 = "";
                    if (reader["CheckUserAFen"].ToString().Trim() != "")
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricAFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserAFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                num5 = Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim());
                                str5 = str5 + num5.ToString("0.00") + "|";
                            }
                        }
                    }
                    else
                    {
                        str5 = reader["RubricAFen"].ToString().Trim();
                    }
                    this.method_0(reader["RubricA"].ToString().Trim(), str5, strArray7[4].Trim(), strArray8[4].Trim());
                }
                if (reader["RubricC"].ToString().Trim() != "")
                {
                    string str4 = "";
                    if (reader["CheckUserCFen"].ToString().Trim() != "")
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricCFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserCFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                num5 = Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim());
                                str4 = str4 + num5.ToString("0.00") + "|";
                            }
                        }
                    }
                    else
                    {
                        str4 = reader["RubricCFen"].ToString().Trim();
                    }
                    this.method_0(reader["RubricC"].ToString().Trim(), str4, strArray7[5].Trim(), strArray8[5].Trim());
                }
                if (reader["RubricT"].ToString().Trim() != "")
                {
                    string str3 = "";
                    if (reader["CheckUserTFen"].ToString().Trim() != "")
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricTFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserTFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                num5 = Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim());
                                str3 = str3 + num5.ToString("0.00") + "|";
                            }
                        }
                    }
                    else
                    {
                        str3 = reader["RubricTFen"].ToString().Trim();
                    }
                    this.method_0(reader["RubricT"].ToString().Trim(), str3, strArray7[6].Trim(), strArray8[6].Trim());
                }
                if (reader["RubricAn"].ToString().Trim() != "")
                {
                    string str2 = "";
                    if (reader["CheckUserAnFen"].ToString().Trim() != "")
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricAnFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserAnFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                num5 = Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim());
                                str2 = str2 + num5.ToString("0.00") + "|";
                            }
                        }
                    }
                    else
                    {
                        str2 = reader["RubricAnFen"].ToString().Trim();
                    }
                    this.method_0(reader["RubricAn"].ToString().Trim(), str2, strArray7[7].Trim(), strArray8[7].Trim());
                }
                if (reader["RubricO"].ToString().Trim() != "")
                {
                    string str = "";
                    if (reader["CheckUserOFen"].ToString().Trim() == "")
                    {
                        str = reader["RubricOFen"].ToString().Trim();
                    }
                    else
                    {
                        num5 = 0.0;
                        strArray9 = reader["RubricOFen"].ToString().Trim().Split(new char[] { '|' });
                        strArray10 = reader["CheckUserOFen"].ToString().Trim().Split(new char[] { '|' });
                        for (num4 = 0; num4 < strArray9.Length; num4++)
                        {
                            if (strArray9[num4].Trim() != "")
                            {
                                str = str + ((Convert.ToDouble(strArray9[num4].Trim()) + Convert.ToDouble(strArray10[num4].Trim()))).ToString("0.00") + "|";
                            }
                        }
                    }
                    this.method_0(reader["RubricO"].ToString().Trim(), str, strArray7[8].Trim(), strArray8[8].Trim());
                }
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
            string[] strArray5 = this.string_46.Split(new char[] { ',' });
            string[] strArray6 = this.string_47.Split(new char[] { ',' });
            this.labSumTable.Text = this.labSumTable.Text + "<tr height='25'>";
            for (num3 = 0; num3 < strArray5.Length; num3++)
            {
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + strArray6[num3].Trim() + "</td>";
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + strArray5[num3].Trim() + "</td>";
                this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + ((Convert.ToDouble(strArray5[num3].Trim()) / Convert.ToDouble(strArray6[num3].Trim()))).ToString("0.00%") + "</td>";
            }
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + this.labPaperFen.Text.Trim() + "</td>";
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + this.labCountFen.Text.Trim() + "</td>";
            this.labSumTable.Text = this.labSumTable.Text + "<td  align='center' >" + ((Convert.ToDouble(this.labCountFen.Text.Trim()) / Convert.ToDouble(this.labPaperFen.Text.Trim()))).ToString("0.00%") + "</td>";
            this.labSumTable.Text = this.labSumTable.Text + "</tr>";
            this.labSumTable.Text = this.labSumTable.Text + "</table>";
        }

        private void method_10(string string_48, string string_49)
        {
            this.DataGridE.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo from RubricInfo  where RubricType='E'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "ARubric");
            this.DataGridE.DataSource = dataSet.Tables["ARubric"].DefaultView;
            this.DataGridE.DataBind();
            for (int i = 0; i < this.DataGridE.Rows.Count; i++)
            {
                Label label5 = (Label) this.DataGridE.Rows[i].FindControl("labEDataTitle");
                label5.Text = num.ToString() + "、" + label5.Text.ToString();
                Label label6 = (Label) this.DataGridE.Rows[i].FindControl("labEUserAnswer");
                Label label3 = (Label) this.DataGridE.Rows[i].FindControl("labEUserFen");
                Label label4 = (Label) this.DataGridE.Rows[i].FindControl("labEOKAnswer");
                label6.Text = this.string_5[i];
                label3.Text = this.string_15[i];
                label6.Text = "<FONT color='red'>考生答案:</FONT><br>" + label6.Text;
                if (this.string_22.Length > 1)
                {
                    if (this.string_15[i].Trim() == "")
                    {
                        this.string_15[i] = "0";
                    }
                    if (this.string_22[i].Trim() == "")
                    {
                        this.string_22[i] = "0";
                    }
                    this.string_15[i] = (Convert.ToDouble(this.string_15[i]) + Convert.ToDouble(this.string_22[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_15[i];
                Label label2 = (Label) this.DataGridE.Rows[i].FindControl("labEOKMemo");
                label4.Text = "<FONT color='red'>参考答案:</FONT>" + label4.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridE.Rows[i].FindControl("labECheckMemo");
                if ((this.string_28.Length > 1) && (this.string_28[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_28[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_11(string string_48, string string_49)
        {
            this.DataGridF.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='F'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "CRubric");
            this.DataGridF.DataSource = dataSet.Tables["CRubric"].DefaultView;
            this.DataGridF.DataBind();
            for (int i = 0; i < this.DataGridF.Rows.Count; i++)
            {
                Label label6 = (Label) this.DataGridF.Rows[i].FindControl("labFDataTitle");
                label6.Text = num.ToString() + "、" + label6.Text.ToString();
                Label label4 = (Label) this.DataGridF.Rows[i].FindControl("labFUserAnswer");
                Label label3 = (Label) this.DataGridF.Rows[i].FindControl("labFUserFen");
                Label label5 = (Label) this.DataGridF.Rows[i].FindControl("labFOKAnswer");
                label4.Text = "<font color='#0000ff'>作文总字数：(" + this.publicFun_0.RemoveHTML(this.string_6[i]).Length.ToString() + ")</font><br>" + this.string_6[i];
                label3.Text = this.string_16[i];
                if (this.string_26.Length > 1)
                {
                    if (this.string_16[i].Trim() == "")
                    {
                        this.string_16[i] = "0";
                    }
                    if (this.string_26[i].Trim() == "")
                    {
                        this.string_26[i] = "0";
                    }
                    this.string_16[i] = (Convert.ToDouble(this.string_16[i]) + Convert.ToDouble(this.string_26[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_16[i];
                label4.Text = "<FONT color='red'>考生答案:</FONT><br>" + label4.Text;
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_16[i];
                Label label2 = (Label) this.DataGridF.Rows[i].FindControl("labFOKMemo");
                label5.Text = "<FONT color='red'>参考答案:</FONT>" + label5.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridF.Rows[i].FindControl("labFCheckMemo");
                if ((this.string_29.Length > 1) && (this.string_29[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_29[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_12(string string_48, string string_49)
        {
            this.DataGridG.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='G'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "TRubric");
            this.DataGridG.DataSource = dataSet.Tables["TRubric"].DefaultView;
            this.DataGridG.DataBind();
            for (int i = 0; i < this.DataGridG.Rows.Count; i++)
            {
                Label label5 = (Label) this.DataGridG.Rows[i].FindControl("labGDataTitle");
                label5.Text = num.ToString() + "、" + label5.Text.ToString();
                Label label6 = (Label) this.DataGridG.Rows[i].FindControl("labGUserAnswer");
                Label label3 = (Label) this.DataGridG.Rows[i].FindControl("labGUserFen");
                Label label4 = (Label) this.DataGridG.Rows[i].FindControl("labGOKAnswer");
                label6.Text = this.string_7[i];
                label3.Text = this.string_17[i];
                label6.Text = "<FONT color='red'>考生答案:</FONT><br>" + label6.Text;
                if (this.string_23.Length > 1)
                {
                    if (this.string_17[i].Trim() == "")
                    {
                        this.string_17[i] = "0";
                    }
                    if (this.string_23[i].Trim() == "")
                    {
                        this.string_23[i] = "0";
                    }
                    this.string_17[i] = (Convert.ToDouble(this.string_17[i]) + Convert.ToDouble(this.string_23[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_17[i];
                Label label2 = (Label) this.DataGridG.Rows[i].FindControl("labGOKMemo");
                label4.Text = "<FONT color='red'>参考答案:</FONT>" + label4.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridG.Rows[i].FindControl("labGCheckMemo");
                if ((this.string_30.Length > 1) && (this.string_30[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_30[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_13(string string_48, string string_49)
        {
            this.DataGridH.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='H'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "ANRubric");
            this.DataGridH.DataSource = dataSet.Tables["ANRubric"].DefaultView;
            this.DataGridH.DataBind();
            for (int i = 0; i < this.DataGridH.Rows.Count; i++)
            {
                Label label5 = (Label) this.DataGridH.Rows[i].FindControl("labHDataTitle");
                label5.Text = num.ToString() + "、" + label5.Text.ToString();
                Label label6 = (Label) this.DataGridH.Rows[i].FindControl("labHUserAnswer");
                Label label3 = (Label) this.DataGridH.Rows[i].FindControl("labHUserFen");
                Label label4 = (Label) this.DataGridH.Rows[i].FindControl("labHOKAnswer");
                label6.Text = this.string_8[i];
                label3.Text = this.string_18[i];
                label6.Text = "<FONT color='red'>考生答案:</FONT><br>" + label6.Text;
                if (this.string_21.Length > 1)
                {
                    if (this.string_18[i].Trim() == "")
                    {
                        this.string_18[i] = "0";
                    }
                    if (this.string_21[i].Trim() == "")
                    {
                        this.string_21[i] = "0";
                    }
                    this.string_18[i] = (Convert.ToDouble(this.string_18[i]) + Convert.ToDouble(this.string_21[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_18[i];
                Label label2 = (Label) this.DataGridH.Rows[i].FindControl("labHOKMemo");
                label4.Text = "<FONT color='red'>参考答案:</FONT>" + label4.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridH.Rows[i].FindControl("labHCheckMemo");
                if ((this.string_31.Length > 1) && (this.string_31[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_31[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_14(string string_48, string string_49)
        {
            this.DataGridI.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='I'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "IRubric");
            this.DataGridI.DataSource = dataSet.Tables["IRubric"].DefaultView;
            this.DataGridI.DataBind();
            for (int i = 0; i < this.DataGridI.Rows.Count; i++)
            {
                Label label7 = (Label) this.DataGridI.Rows[i].FindControl("labIDataTitle");
                label7.Text = num.ToString() + "、" + label7.Text.ToString();
                Label label6 = (Label) this.DataGridI.Rows[i].FindControl("labIAnswer");
                Label label5 = (Label) this.DataGridI.Rows[i].FindControl("labOKIAnswer");
                if (label6.Text.Length > 6)
                {
                    label6.Text = "&nbsp;&nbsp;&nbsp;&nbsp;<font color='red'>注:</font><a href='../FrmDownLoad.aspx?FileName=" + label6.Text + "' target='_blank'>下载原题</a>";
                }
                if (label5.Text.Length > 6)
                {
                    label5.Text = "<a href='../FrmDownLoad.aspx?FileName=" + label5.Text + "' target='_blank'>下载答案</a>";
                }
                Label label4 = (Label) this.DataGridI.Rows[i].FindControl("labIUserAnswer");
                Label label3 = (Label) this.DataGridI.Rows[i].FindControl("labIUserFen");
                if (this.string_9[i].Trim().Length <= 6)
                {
                    label4.Text = "未填写";
                }
                else
                {
                    label4.Text = "<a href='../FrmDownLoad.aspx?FileName=" + this.string_9[i] + "' target='_blank'>查看考生答案</a>";
                }
                label3.Text = this.string_19[i];
                label4.Text = "<FONT color='red'>考生答案:</FONT>" + label4.Text;
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_19[i];
                Label label2 = (Label) this.DataGridI.Rows[i].FindControl("labIOKMemo");
                label5.Text = "<FONT color='red'>参考答案:</FONT>" + label5.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridI.Rows[i].FindControl("labICheckMemo");
                if ((this.string_32.Length > 1) && (this.string_32[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_32[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_15(string string_48, string string_49)
        {
            this.DataGridJ.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='J'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "JRubric");
            this.DataGridJ.DataSource = dataSet.Tables["JRubric"].DefaultView;
            this.DataGridJ.DataBind();
            for (int i = 0; i < this.DataGridJ.Rows.Count; i++)
            {
                Label label6 = (Label) this.DataGridJ.Rows[i].FindControl("labJDataTitle");
                label6.Text = num.ToString() + "、" + label6.Text.ToString();
                Label label3 = (Label) this.DataGridJ.Rows[i].FindControl("labJUserAnswer");
                Label label4 = (Label) this.DataGridJ.Rows[i].FindControl("labJUserFen");
                Label label5 = (Label) this.DataGridJ.Rows[i].FindControl("labJOKAnswer");
                label3.Text = this.string_10[i];
                label4.Text = this.string_20[i];
                if (this.string_25.Length > 1)
                {
                    if (this.string_20[i].Trim() == "")
                    {
                        this.string_20[i] = "0";
                    }
                    if (this.string_25[i].Trim() == "")
                    {
                        this.string_25[i] = "0";
                    }
                    this.string_20[i] = (Convert.ToDouble(this.string_20[i]) + Convert.ToDouble(this.string_25[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>考生答案:</FONT><br>" + label3.Text;
                label4.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_20[i];
                Label label2 = (Label) this.DataGridJ.Rows[i].FindControl("labJOKMemo");
                label5.Text = "<FONT color='red'>参考答案:</FONT>" + label5.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridJ.Rows[i].FindControl("labJCheckMemo");
                if ((this.string_33.Length > 1) && (this.string_33[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_33[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_2()
        {
            string cmdText = "select RubricTypeName  from PaperInfo where ID='" + this.int_0 + "'";
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(cmdText, connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (reader.Read())
            {
                string[] strArray = reader["RubricTypeName"].ToString().Split(new char[] { '#' });
                for (int i = 0; i < strArray.Length; i++)
                {
                    switch (i)
                    {
                        case 0:
                            this.labATitle.Text = strArray[i].Trim();
                            break;

                        case 1:
                            this.labBTitle.Text = strArray[i].Trim();
                            break;

                        case 2:
                            this.labCTitle.Text = strArray[i].Trim();
                            break;

                        case 3:
                            this.labDTitle.Text = strArray[i].Trim();
                            break;

                        case 4:
                            this.labETitle.Text = strArray[i].Trim();
                            break;

                        case 5:
                            this.labFTitle.Text = strArray[i].Trim();
                            break;

                        case 6:
                            this.labGTitle.Text = strArray[i].Trim();
                            break;

                        case 7:
                            this.labHTitle.Text = strArray[i].Trim();
                            break;

                        case 8:
                            this.labITitle.Text = strArray[i].Trim();
                            break;

                        case 9:
                            this.labJTitle.Text = strArray[i].Trim();
                            break;
                    }
                }
            }
            if (this.labATitle.Text.Trim() == "")
            {
                this.labATitle.Text = "单选题";
            }
            if (this.labBTitle.Text.Trim() == "")
            {
                this.labBTitle.Text = "多选题";
            }
            if (this.labCTitle.Text.Trim() == "")
            {
                this.labCTitle.Text = "判断题";
            }
            if (this.labDTitle.Text.Trim() == "")
            {
                this.labDTitle.Text = "填空题";
            }
            if (this.labETitle.Text.Trim() == "")
            {
                this.labETitle.Text = "简答题";
            }
            if (this.labFTitle.Text.Trim() == "")
            {
                this.labFTitle.Text = "作文题";
            }
            if (this.labGTitle.Text.Trim() == "")
            {
                this.labGTitle.Text = "论述题";
            }
            if (this.labHTitle.Text.Trim() == "")
            {
                this.labHTitle.Text = "分析题";
            }
            if (this.labITitle.Text.Trim() == "")
            {
                this.labITitle.Text = "操作题";
            }
            if (this.labJTitle.Text.Trim() == "")
            {
                this.labJTitle.Text = "综合题";
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
        }

        private void method_3()
        {
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(string.Concat(new object[] { "select * from CheckPaper where UserCode='", this.string_0, "' and PaperID=", this.int_0 }), connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (!reader.Read())
            {
                base.Response.Write("<script>alert('没有保存试卷并强行退出，暂无详细试卷批改记录！')</script>");
                reader.Close();
                command.Dispose();
                connection.Close();
                connection.Dispose();
            }
            else
            {
                this.string_1 = reader["RubricSWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_2 = reader["RubricDWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_3 = reader["RubricBWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_4 = reader["RubricFWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_5 = reader["RubricAWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_6 = reader["RubricCWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_7 = reader["RubricTWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_8 = reader["RubricANWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_9 = reader["RubricOWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_10 = reader["RubricJWrite"].ToString().Trim().Split(new char[] { '|' });
                this.string_11 = reader["RubricSFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_12 = reader["RubricDFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_13 = reader["RubricBFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_14 = reader["RubricFFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_15 = reader["RubricAFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_16 = reader["RubricCFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_17 = reader["RubricTFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_18 = reader["RubricANFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_19 = reader["CheckUserOFen"].ToString().Trim().Replace("+", "").Replace("-", "").Split(new char[] { '|' });
                this.string_20 = reader["RubricJFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_21 = reader["CheckUserANFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_22 = reader["CheckUserAFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_23 = reader["CheckUserTFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_24 = reader["CheckUserFFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_25 = reader["CheckUserJFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_26 = reader["CheckUserCFen"].ToString().Trim().Split(new char[] { '|' });
                this.string_27 = reader["CheckMemoF"].ToString().Trim().Split(new char[] { '|' });
                this.string_28 = reader["CheckMemoA"].ToString().Trim().Split(new char[] { '|' });
                this.string_29 = reader["CheckMemoC"].ToString().Trim().Split(new char[] { '|' });
                this.string_30 = reader["CheckMemoT"].ToString().Trim().Split(new char[] { '|' });
                this.string_31 = reader["CheckMemoAn"].ToString().Trim().Split(new char[] { '|' });
                this.string_32 = reader["CheckMemoO"].ToString().Trim().Split(new char[] { '|' });
                this.string_33 = reader["CheckMemoJ"].ToString().Trim().Split(new char[] { '|' });
                if (!(this.httpCookie_2.Value == "A"))
                {
                    this.string_34 = reader["CheckUserS"].ToString().Trim();
                    this.string_35 = reader["CheckUserD"].ToString().Trim();
                    this.string_36 = reader["CheckUserB"].ToString().Trim();
                    this.string_37 = reader["CheckUserF"].ToString().Trim();
                    this.string_38 = reader["CheckUserA"].ToString().Trim();
                    this.string_39 = reader["CheckUserC"].ToString().Trim();
                    this.string_40 = reader["CheckUserT"].ToString().Trim();
                    this.string_41 = reader["CheckUserAN"].ToString().Trim();
                    this.string_42 = reader["CheckUserO"].ToString().Trim();
                    this.string_43 = reader["CheckUserJ"].ToString().Trim();
                }
                else
                {
                    if (reader["CheckUserS"].ToString().Trim() != "还未批改")
                    {
                        this.string_34 = "已经批改";
                    }
                    if (reader["CheckUserD"].ToString().Trim() != "还未批改")
                    {
                        this.string_35 = "已经批改";
                    }
                    if (reader["CheckUserB"].ToString().Trim() != "还未批改")
                    {
                        this.string_36 = "已经批改";
                    }
                    if (reader["CheckUserF"].ToString().Trim() != "还未批改")
                    {
                        this.string_37 = "已经批改";
                    }
                    if (reader["CheckUserA"].ToString().Trim() != "还未批改")
                    {
                        this.string_38 = "已经批改";
                    }
                    if (reader["CheckUserC"].ToString().Trim() != "还未批改")
                    {
                        this.string_39 = "已经批改";
                    }
                    if (reader["CheckUserT"].ToString().Trim() != "还未批改")
                    {
                        this.string_40 = "已经批改";
                    }
                    if (reader["CheckUserAN"].ToString().Trim() != "还未批改")
                    {
                        this.string_41 = "已经批改";
                    }
                    if (reader["CheckUserO"].ToString().Trim() != "还未批改")
                    {
                        this.string_42 = "已经批改";
                    }
                    if (reader["CheckUserJ"].ToString().Trim() != "还未批改")
                    {
                        this.string_43 = "已经批改";
                    }
                }
                reader.Close();
                command.Dispose();
                connection.Close();
                connection.Dispose();
                if (this.string_37.Trim() == "还未批改")
                {
                    this.string_37 = "自动批改,人未干预";
                }
                if (this.string_38.Trim() == "还未批改")
                {
                    this.string_38 = "自动批改,人未干预";
                }
                if (this.string_39.Trim() == "还未批改")
                {
                    this.string_39 = "自动批改,人未干预";
                }
                if (this.string_40.Trim() == "还未批改")
                {
                    this.string_40 = "自动批改,人未干预";
                }
                if (this.string_41.Trim() == "还未批改")
                {
                    this.string_41 = "自动批改,人未干预";
                }
                if (this.string_42.Trim() == "还未批改")
                {
                    this.string_42 = "自动批改,人未干预";
                }
                if (this.string_43.Trim() == "还未批改")
                {
                    this.string_43 = "自动批改,人未干预";
                }
                int index = 0;
                for (index = 0; index < this.string_11.Length; index++)
                {
                    if (this.string_11[index].Trim() != "")
                    {
                        this.double_0 += Convert.ToDouble(this.string_11[index].Trim());
                    }
                }
                for (index = 0; index < this.string_12.Length; index++)
                {
                    if (this.string_12[index].Trim() != "")
                    {
                        this.double_1 += Convert.ToDouble(this.string_12[index].Trim());
                    }
                }
                for (index = 0; index < this.string_13.Length; index++)
                {
                    if (this.string_13[index].Trim() != "")
                    {
                        this.double_2 += Convert.ToDouble(this.string_13[index].Trim());
                    }
                }
                for (index = 0; index < this.string_14.Length; index++)
                {
                    if (this.string_14[index].Trim() != "")
                    {
                        this.double_3 += Convert.ToDouble(this.string_14[index].Trim());
                    }
                }
                for (index = 0; index < this.string_15.Length; index++)
                {
                    if (this.string_15[index].Trim() != "")
                    {
                        this.double_4 += Convert.ToDouble(this.string_15[index].Trim());
                    }
                }
                for (index = 0; index < this.string_16.Length; index++)
                {
                    if (this.string_16[index].Trim() != "")
                    {
                        this.double_5 += Convert.ToDouble(this.string_16[index].Trim());
                    }
                }
                for (index = 0; index < this.string_17.Length; index++)
                {
                    if (this.string_17[index].Trim() != "")
                    {
                        this.double_6 += Convert.ToDouble(this.string_17[index].Trim());
                    }
                }
                for (index = 0; index < this.string_18.Length; index++)
                {
                    if (this.string_18[index].Trim() != "")
                    {
                        this.double_7 += Convert.ToDouble(this.string_18[index].Trim());
                    }
                }
                for (index = 0; index < this.string_19.Length; index++)
                {
                    if (this.string_19[index].Trim() != "")
                    {
                        this.double_8 += Convert.ToDouble(this.string_19[index].Trim());
                    }
                }
                for (index = 0; index < this.string_20.Length; index++)
                {
                    if (this.string_20[index].Trim() != "")
                    {
                        this.double_9 += Convert.ToDouble(this.string_20[index].Trim());
                    }
                }
                for (index = 0; index < this.string_21.Length; index++)
                {
                    if (this.string_21[index].Trim() != "")
                    {
                        this.double_7 += Convert.ToDouble(this.string_21[index].Trim());
                    }
                }
                for (index = 0; index < this.string_22.Length; index++)
                {
                    if (this.string_22[index].Trim() != "")
                    {
                        this.double_4 += Convert.ToDouble(this.string_22[index].Trim());
                    }
                }
                for (index = 0; index < this.string_26.Length; index++)
                {
                    if (this.string_26[index].Trim() != "")
                    {
                        this.double_5 += Convert.ToDouble(this.string_26[index].Trim());
                    }
                }
                for (index = 0; index < this.string_23.Length; index++)
                {
                    if (this.string_23[index].Trim() != "")
                    {
                        this.double_6 += Convert.ToDouble(this.string_23[index].Trim());
                    }
                }
                for (index = 0; index < this.string_24.Length; index++)
                {
                    if (this.string_24[index].Trim() != "")
                    {
                        this.double_3 += Convert.ToDouble(this.string_24[index].Trim());
                    }
                }
                for (index = 0; index < this.string_25.Length; index++)
                {
                    if (this.string_25[index].Trim() != "")
                    {
                        this.double_9 += Convert.ToDouble(this.string_25[index].Trim());
                    }
                }
            }
        }

        private string method_4(int int_1)
        {
            switch (int_1)
            {
                case 1:
                    return "一、";

                case 2:
                    return "二、";

                case 3:
                    return "三、";

                case 4:
                    return "四、";

                case 5:
                    return "五、";

                case 6:
                    return "六、";

                case 7:
                    return "七、";

                case 8:
                    return "八、";

                case 9:
                    return "九、";

                case 10:
                    return "十、";
            }
            return "";
        }

        private void method_5()
        {
            try
            {
                string str2 = "";
                string str3 = "";
                string str4 = "";
                string str5 = "";
                string str6 = "";
                string str7 = "";
                string str8 = "";
                string str9 = "";
                string str10 = "";
                string str11 = "";
                string str12 = "";
                string str13 = "";
                string str14 = "";
                string str15 = "";
                string str16 = "";
                SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                connection.Open();
                SqlCommand command = new SqlCommand(string.Concat(new object[] { "select a.SubjectName,a.SubjectID,a.PaperStatus,c.GetCountFen,b.SortInfo,a.ExamName,a.SubjectName,a.PaperFen,a.ExamTime,a.RubricDist,a.FenDist,a.MemoDist,b.RubricS,b.RubricD,b.RubricB,b.RubricF,b.RubricA,b.RubricC,b.RubricT,b.RubricAN,b.RubricO,b.RubricJ  from PaperInfo a ,PaperData b,ExamUser c ,CheckPaper d where d.PaperID=a.ID and d.UserCode=c.UserCode and  c.PaperID=b.PaperID and c.UserCode=b.UserCode and a.ID=b.PaperID  and b.UserCode='", this.string_0, "' and a.ID=", this.int_0 }), connection);
                SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
                if (reader.Read())
                {
                    this.string_44 = reader["SubjectName"].ToString();
                    this.string_45 = reader["SubjectID"].ToString();
                    this.labExamName.Text = reader["ExamName"].ToString() + "(" + reader["SubjectName"].ToString() + ")";
                    this.labPaperFen.Text = reader["PaperFen"].ToString();
                    str2 = reader["RubricDist"].ToString();
                    str3 = reader["FenDist"].ToString();
                    str4 = reader["MemoDist"].ToString();
                    str5 = reader["SortInfo"].ToString();
                    str6 = reader["RubricS"].ToString();
                    str7 = reader["RubricD"].ToString();
                    str8 = reader["RubricB"].ToString();
                    str9 = reader["RubricF"].ToString();
                    str10 = reader["RubricA"].ToString();
                    str11 = reader["RubricC"].ToString();
                    str12 = reader["RubricT"].ToString();
                    str13 = reader["RubricAN"].ToString();
                    str14 = reader["RubricO"].ToString();
                    str15 = reader["RubricJ"].ToString();
                    this.labCountFen.Text = reader["GetCountFen"].ToString();
                    str16 = reader["PaperStatus"].ToString();
                }
                reader.Close();
                command.Dispose();
                connection.Close();
                connection.Dispose();
                if ((this.httpCookie_2.Value == "A") && (str16.Trim() != "C"))
                {
                    if (this.publicFun_0.GetValues("select LookPaper from UserPower where UserCode='" + this.httpCookie_0.Value + "'", "LookPaper") == "N")
                    {
                        goto Label_0E36;
                    }
                    string values = this.publicFun_0.GetValues("select LookPaperID from UserPower where UserCode='" + this.httpCookie_0.Value + "'", "LookPaperID");
                    if ((values.Trim() != "") && (values.Trim().IndexOf("," + this.int_0.ToString() + ",") == -1))
                    {
                        goto Label_0E24;
                    }
                }
                string[] strArray2 = str2.Split(new char[] { '#' });
                string[] strArray3 = str3.Split(new char[] { '#' });
                string[] strArray4 = str4.Split(new char[] { '#' });
                string[] strArray5 = str5.Split(new char[] { '#' });
                string str17 = "";
                str17 = "<table   borderColor='#cccccc' cellSpacing='0' borderColorDark='#ffffff' cellPadding='0' width='100%' align='center' border='1' style='border-style:Solid;'>";
                str17 = str17 + "<tr height='25'><td align='left' bgcolor='#5AA6E4'>";
                int num = 0;
                if (strArray2.Length <= 1)
                {
                    base.Response.Write("<script>alert('没有找到相关数据！')</script>");
                }
                else
                {
                    if (strArray2[0] != "0")
                    {
                        num++;
                        this.labATitle.Visible = true;
                        this.labATitle.Text = "<br>" + str17 + "<font color='#ffffff'><a name='RubricTypeA'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labATitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[0] + "</font>题,每题<font color='#ff0000'>" + strArray3[0] + "</font>分,说明:" + strArray4[0] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_0.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_34 + "</b></font></td></tr></table><br>";
                        this.method_6(str6, strArray5[0]);
                    }
                    if (strArray2[1] != "0")
                    {
                        num++;
                        this.labBTitle.Visible = true;
                        this.labBTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeB'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labBTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[1] + "</font>题,每题<font color='#ff0000'>" + strArray3[1] + "</font>分,说明:" + strArray4[1] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_1.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_35 + "</b></font></td></tr></table><br>";
                        this.method_7(str7, strArray5[1]);
                    }
                    if (strArray2[2] != "0")
                    {
                        num++;
                        this.labCTitle.Visible = true;
                        this.labCTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeC'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labCTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[2] + "</font>题,每题<font color='#ff0000'>" + strArray3[2] + "</font>分,说明:" + strArray4[2] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_2.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_36 + "</b></font></td></tr></table><br>";
                        this.method_8(str8, strArray5[2]);
                    }
                    if (strArray2[3] != "0")
                    {
                        num++;
                        this.labDTitle.Visible = true;
                        this.labDTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeD'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labDTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[3] + "</font>题,每题<font color='#ff0000'>" + strArray3[3] + "</font>分,说明:" + strArray4[3] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_3.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_37 + "</b></font></td></tr></table><br>";
                        this.method_9(str9, strArray5[3]);
                    }
                    if (strArray2[4] != "0")
                    {
                        num++;
                        this.labETitle.Visible = true;
                        this.labETitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeE'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labETitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[4] + "</font>题,每题<font color='#ff0000'>" + strArray3[4] + "</font>分,说明:" + strArray4[4] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_4.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_38 + "</b></font></td></tr></table><br>";
                        this.method_10(str10, strArray5[4]);
                    }
                    if (strArray2[5] != "0")
                    {
                        num++;
                        this.labFTitle.Visible = true;
                        this.labFTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeF'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labFTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[5] + "</font>题,每题<font color='#ff0000'>" + strArray3[5] + "</font>分,说明:" + strArray4[5] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_5.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_39 + "</b></font></td></tr></table><br>";
                        this.method_11(str11, strArray5[5]);
                    }
                    if (strArray2[6] != "0")
                    {
                        num++;
                        this.labGTitle.Visible = true;
                        this.labGTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeG'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labGTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[6] + "</font>题,每题<font color='#ff0000'>" + strArray3[6] + "</font>分,说明:" + strArray4[6] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_6.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_40 + "</b></font></td></tr></table><br>";
                        this.method_12(str12, strArray5[6]);
                    }
                    if (strArray2[7] != "0")
                    {
                        num++;
                        this.labHTitle.Visible = true;
                        this.labHTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeH'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labHTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[7] + "</font>题,每题<font color='#ff0000'>" + strArray3[7] + "</font>分,说明:" + strArray4[7] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_7.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_41 + "</b></font></td></tr></table><br>";
                        this.method_13(str13, strArray5[7]);
                    }
                    if (strArray2[8] != "0")
                    {
                        num++;
                        this.labITitle.Visible = true;
                        this.labITitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeI'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labITitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + strArray2[8] + "</font>题,每题<font color='#ff0000'>" + strArray3[8] + "</font>分,说明:" + strArray4[8] + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_8.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_42 + "</b></font></td></tr></table><br>";
                        this.method_14(str14, strArray5[8]);
                    }
                    if (strArray2[9] != "0")
                    {
                        num++;
                        this.labJTitle.Visible = true;
                        this.labJTitle.Text = "<br><br>" + str17 + "<font color='#ffffff'><a name='RubricTypeJ'></a>&nbsp;&nbsp;<b>" + this.method_4(num) + this.labJTitle.Text + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(共<font color='#ff0000'>" + Convert.ToString(strArray2[9].ToString().Split(new char[] { '_' }).Length) + "</font>题,每题<font color='#ff0000'>" + strArray3[9].Replace("_", " /") + "</font>分,说明:" + strArray4[9].Replace("＃", "#") + ")</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'>小计:" + this.double_9.ToString("0.00") + "分</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#ff0000'><b>" + this.string_43 + "</b></font></td></tr></table><br>";
                        this.method_15(str15, strArray5[9]);
                    }
                }
                return;
            Label_0E24:
                base.Response.Write("<script>alert('查看试卷批改明细权限未开放！')</script>");
                return;
            Label_0E36:
                base.Response.Write("<script>alert('查看试卷批改明细权限未开放！')</script>");
            }
            catch (Exception exception)
            {
                base.Response.Write("<script>alert('" + exception.Message + "')</script>");
            }
        }

        private void method_6(string string_48, string string_49)
        {
            this.DataGridA.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo from RubricInfo where RubricType='A'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "SRubric");
            this.DataGridA.DataSource = dataSet.Tables["SRubric"].DefaultView;
            this.DataGridA.DataBind();
            for (int i = 0; i < this.DataGridA.Rows.Count; i++)
            {
                string[] strArray2 = dataSet.Tables["SRubric"].Rows[i]["OptionAnswer"].ToString().Replace("&nbsp;", "").Replace("<BR>", "").Split(new char[] { '#' });
                Label label6 = (Label) this.DataGridA.Rows[i].FindControl("labADataTitle");
                label6.Text = num.ToString() + "、" + label6.Text.ToString();
                Label label5 = (Label) this.DataGridA.Rows[i].FindControl("labChooseDataA");
                if (strArray2[0].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>A、" + strArray2[0].Replace("＃", "#");
                }
                if (strArray2[1].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>B、" + strArray2[1].Replace("＃", "#");
                }
                if (strArray2[2].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>C、" + strArray2[2].Replace("＃", "#");
                }
                if (strArray2[3].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>D、" + strArray2[3].Replace("＃", "#");
                }
                if (strArray2[4].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>E、" + strArray2[4].Replace("＃", "#");
                }
                if (strArray2[5].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>F、" + strArray2[5].Replace("＃", "#");
                }
                Label label2 = (Label) this.DataGridA.Rows[i].FindControl("labAUserAnswer");
                Label label3 = (Label) this.DataGridA.Rows[i].FindControl("labAUserFen");
                label2.Text = "<FONT color='red'>考生答案:</FONT>" + this.string_1[i];
                label3.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_11[i];
                Label label4 = (Label) this.DataGridA.Rows[i].FindControl("labAOKAnswer");
                Label label = (Label) this.DataGridA.Rows[i].FindControl("labAOKMemo");
                label4.Text = "<FONT color='red'>参考答案:</FONT>" + label4.Text;
                if (label.Text.Trim() != "")
                {
                    label.Text = "<FONT color='red'>答案说明:</FONT>" + label.Text;
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_7(string string_48, string string_49)
        {
            this.DataGridB.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo  from RubricInfo  where RubricType='B'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "DRubric");
            this.DataGridB.DataSource = dataSet.Tables["DRubric"].DefaultView;
            this.DataGridB.DataBind();
            for (int i = 0; i < this.DataGridB.Rows.Count; i++)
            {
                string[] strArray2 = dataSet.Tables["DRubric"].Rows[i]["OptionAnswer"].ToString().Replace("&nbsp;", "").Replace("<BR>", "").Split(new char[] { '#' });
                Label label6 = (Label) this.DataGridB.Rows[i].FindControl("labBDataTitle");
                label6.Text = num.ToString() + "、" + label6.Text.ToString();
                Label label5 = (Label) this.DataGridB.Rows[i].FindControl("labChooseDataB");
                if (strArray2[0].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>A、" + strArray2[0].Replace("＃", "#");
                }
                if (strArray2[1].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>B、" + strArray2[1].Replace("＃", "#");
                }
                if (strArray2[2].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>C、" + strArray2[2].Replace("＃", "#");
                }
                if (strArray2[3].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>D、" + strArray2[3].Replace("＃", "#");
                }
                if (strArray2[4].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>E、" + strArray2[4].Replace("＃", "#");
                }
                if (strArray2[5].Trim() != "")
                {
                    label5.Text = label5.Text + "<br>F、" + strArray2[5].Replace("＃", "#");
                }
                Label label2 = (Label) this.DataGridB.Rows[i].FindControl("labBOKAnswer");
                label2.Text = label2.Text.Replace("#", "");
                Label label3 = (Label) this.DataGridB.Rows[i].FindControl("labBUserAnswer");
                Label label4 = (Label) this.DataGridB.Rows[i].FindControl("labBUserFen");
                label3.Text = "<FONT color='red'>考生答案:</FONT>" + this.string_2[i].Replace("#", "");
                label4.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_12[i];
                Label label = (Label) this.DataGridB.Rows[i].FindControl("labBOKMemo");
                label2.Text = "<FONT color='red'>参考答案:</FONT>" + label2.Text;
                if (label.Text.Trim() != "")
                {
                    label.Text = "<FONT color='red'>答案说明:</FONT>" + label.Text;
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_8(string string_48, string string_49)
        {
            this.DataGridC.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo from RubricInfo  where RubricType='C'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "BRubric");
            this.DataGridC.DataSource = dataSet.Tables["BRubric"].DefaultView;
            this.DataGridC.DataBind();
            for (int i = 0; i < this.DataGridC.Rows.Count; i++)
            {
                Label label5 = (Label) this.DataGridC.Rows[i].FindControl("labCDataTitle");
                label5.Text = num.ToString() + "、" + label5.Text.ToString();
                Label label6 = (Label) this.DataGridC.Rows[i].FindControl("labChooseDataC");
                label6.Text = "<br>正确<br>错误";
                Label label3 = (Label) this.DataGridC.Rows[i].FindControl("labCOKAnswer");
                switch (label3.Text.Trim())
                {
                    case "N":
                        label3.Text = "错误";
                        break;

                    case "Y":
                        label3.Text = "正确";
                        break;

                    default:
                        label3.Text = "未知";
                        break;
                }
                Label label4 = (Label) this.DataGridC.Rows[i].FindControl("labCUserAnswer");
                Label label = (Label) this.DataGridC.Rows[i].FindControl("labCUserFen");
                switch (this.string_3[i])
                {
                    case "N":
                        label4.Text = "<FONT color='red'>考生答案:</FONT>错误";
                        break;

                    case "Y":
                        label4.Text = "<FONT color='red'>考生答案:</FONT>正确";
                        break;

                    default:
                        label4.Text = "<FONT color='red'>考生答案:</FONT>未填写";
                        break;
                }
                label.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_13[i];
                Label label2 = (Label) this.DataGridC.Rows[i].FindControl("labCOKMemo");
                label3.Text = "<FONT color='red'>参考答案:</FONT>" + label3.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        private void method_9(string string_48, string string_49)
        {
            this.DataGridD.Visible = true;
            int num = 1;
            string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer,OKMemo from RubricInfo  where RubricType='D'";
            selectCommandText = selectCommandText + " and ID in(" + string_48.Replace("#", ",") + "0) order by " + string_49;
            SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
            DataSet dataSet = new DataSet();
            adapter.Fill(dataSet, "FRubric");
            this.DataGridD.DataSource = dataSet.Tables["FRubric"].DefaultView;
            this.DataGridD.DataBind();
            for (int i = 0; i < this.DataGridD.Rows.Count; i++)
            {
                Label label6 = (Label) this.DataGridD.Rows[i].FindControl("labDDataTitle");
                label6.Text = num.ToString() + "、" + label6.Text.ToString();
                Label label5 = (Label) this.DataGridD.Rows[i].FindControl("labDOKAnswer");
                label5.Text = label5.Text.Replace("####", "#");
                label5.Text = label5.Text.Replace("###", "#");
                label5.Text = label5.Text.Replace("##", "#");
                label5.Text = label5.Text.Replace("#", "，&nbsp;&nbsp;&nbsp;");
                label5.Text = label5.Text.Replace(":/", "或者");
                Label label3 = (Label) this.DataGridD.Rows[i].FindControl("labDUserAnswer");
                Label label4 = (Label) this.DataGridD.Rows[i].FindControl("labDUserFen");
                label3.Text = this.string_4[i].Replace("#", "，&nbsp;&nbsp;&nbsp;");
                label4.Text = this.string_14[i];
                if (this.string_24.Length > 1)
                {
                    if (this.string_14[i].Trim() == "")
                    {
                        this.string_14[i] = "0";
                    }
                    if (this.string_24[i].Trim() == "")
                    {
                        this.string_24[i] = "0";
                    }
                    this.string_14[i] = (Convert.ToDouble(this.string_14[i]) + Convert.ToDouble(this.string_24[i])).ToString("0.00");
                }
                label3.Text = "<FONT color='red'>考生答案:</FONT>" + label3.Text;
                label4.Text = "<FONT color='red'>具体得分:</FONT>" + this.string_14[i];
                Label label2 = (Label) this.DataGridD.Rows[i].FindControl("labDOKMemo");
                label5.Text = "<FONT color='red'>参考答案:</FONT>" + label5.Text;
                if (label2.Text.Trim() != "")
                {
                    label2.Text = "<FONT color='red'>答案说明:</FONT>" + label2.Text;
                }
                Label label = (Label) this.DataGridD.Rows[i].FindControl("labDCheckMemo");
                if ((this.string_27.Length > 1) && (this.string_27[i].Trim() != ""))
                {
                    label.Text = "<FONT color='red'>批改评语:</FONT>" + this.string_27[i].Trim();
                }
                num++;
            }
            adapter.Dispose();
            dataSet.Clear();
            dataSet.Dispose();
            selectConnection.Close();
            selectConnection.Dispose();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.httpCookie_0 = new HttpCookie("ExamUserCode");
            this.httpCookie_0 = base.Request.Cookies["ExamUserCode"];
            this.httpCookie_1 = new HttpCookie("ExamUserName");
            this.httpCookie_1 = base.Request.Cookies["ExamUserName"];
            this.httpCookie_2 = new HttpCookie("ExamUserLevel");
            this.httpCookie_2 = base.Request.Cookies["ExamUserLevel"];
            this.httpCookie_3 = new HttpCookie("ExamDeptID");
            this.httpCookie_3 = base.Request.Cookies["ExamDeptID"];
            if (!((this.httpCookie_0 != null) ? !(this.httpCookie_0.Value == "") : false))
            {
                base.Response.Write("<script language=javascript>window.location.href='FrmLogin.aspx';</script>");
            }
            else
            {
                this.int_0 = Convert.ToInt32(base.Request["ID"]);
                if (base.Request["UserCode"] != null)
                {
                    this.string_0 = base.Server.UrlDecode(base.Request["UserCode"].ToString());
                }
                else
                {
                    this.string_0 = this.httpCookie_0.Value;
                }
                base.Response.Cache.SetCacheability(HttpCacheability.NoCache);
                base.Response.Cache.SetNoStore();
                this.httpCookie_0.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_0.Value));
                this.httpCookie_1.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_1.Value));
                this.httpCookie_2.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_2.Value));
                this.httpCookie_3.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_3.Value));
                if (!base.IsPostBack)
                {
                    this.labPaperFen.Text = "0";
                    this.labCountFen.Text = "0";
                    this.Page.Title = ConfigurationManager.ConnectionStrings["ProTitle"].ConnectionString;
                    this.method_2();
                    this.method_3();
                    this.method_5();
                    this.method_1();
                }
            }
        }
    }
}

